import request from '@/utils/request'

export async function querySuiteMarketClassifyList() {
  return request.post('/v1/suite/market/classify');
}

/**
 * @description
 * @author Golduck
 * @date 06/05/2025
 * @export
 * @param {({
 *   pageNum:number;
 *   pageSize:number;
 *   suiteName: string;
 *   suiteClassifyId: number|null;
 * })} params
 * @return {*}  {ResponseResult}
 */
export async function querySuiteMarketList(params) {
  return request.post('/v1/suite/market', params);
}

export async function querySuiteMarketDetail(suiteId) {
  return request.get('/v1/suite/market/info/' + suiteId);
}

export async function installSuiteMarket(suiteId, bill) {
  return request.post('/v1/suite/market/install', {
    suiteId: suiteId,
    bill: bill
  });
}
